//
//  FavAudioOpCell.swift
//  GhostWorld
//
//  Created by Kam on 2018/7/15.
//  Copyright © 2018 LKGood. All rights reserved.
//

import UIKit

protocol FavAudioOpCellDelegate {
  func addToPlaylist()
}

class FavAudioOpCell: UITableViewCell {
  
  // MARK: - Public vars
  
  var delegate: FavAudioOpCellDelegate?
  
  // MARK: - Lifecycle
  
  override func awakeFromNib() {
    super.awakeFromNib()
    // Initialization code
  }
  
  override func setSelected(_ selected: Bool, animated: Bool) {
    super.setSelected(selected, animated: animated)
    
    // Configure the view for the selected state
  }
  
  // MARK: - IBActions
  
  @IBAction func addToList() {
    delegate?.addToPlaylist()
  }
}

extension FavAudioOpCell {
  static let defaultHeight: CGFloat = 30
}
